package Pm.Cars;

public class Car extends Vehicle{
    int numDoors;

    public Car(String brand, int year,int numDoors) {
        super(brand, year);
        this.numDoors = numDoors;
    }

    @Override
    public void dispayInfo() {
        super.dispayInfo();
        System.out.println("车门数" + numDoors);
    }
}
